from ffmpeg import FFMPEG


if __name__ == '__main__':
	xcoder = FFmpeg('/Users/james/bin/ffmpeg')
	metadata = xcoder.get_metadata('videos/barsandtone.flv')
	print metadata

	xcoder = FFmpeg('/Users/james/bin/ffmpeg')
	xcoder.transcode('videos/barsandtone.flv', 'videos/barsandtone.avi')
	
	xcoder = FFmpeg('/Users/james/bin/ffmpeg')
	xcoder.get_frame_as_jpeg('videos/barsandtone.avi', 'videos/barsandtone.jpg')
